cmake_minimum_required(VERSION 3.12.0)
project(MovieRental)

add_library(MovieRental STATIC MovieRental_Kata_CPlusPlus/MovieRental.cpp)
target_include_directories(MovieRental PUBLIC MovieRental_Kata_CPlusPlus)

# main
add_executable(MovieRentalMain)
target_sources(MovieRentalMain PRIVATE MovieRental_Kata_CPlusPlus/main.cpp)
target_link_libraries(MovieRentalMain MovieRental)

# test
add_library(gtest STATIC test/googletest/src/gtest_main.cc test/googletest/src/gtest-all.cc)
target_include_directories(gtest PUBLIC test/googletest/include test/googletest)

add_executable(MovieRentalTest)
target_sources(MovieRentalTest PRIVATE test/demo.cpp)
target_link_libraries(MovieRentalTest MovieRental gtest)
